//
//  SKBoard+Helper.h
//  Sudoku
//
//  Created by Richard Hodgkins on 29/09/2012.
//  Copyright (c) 2012 Richard Hodgkins. All rights reserved.
//

#import "SKBoard.h"

#import "NSManagedObject+BaseHelper.h"

#define COL_SKBOARD_BOARD_ID @"boardId"
#define COL_SKBOARD_NAME @"name"
#define COL_SKBOARD_DIFFICULTY @"difficulty"

#define SIZE_OF_LAYOUT (9*9)

#ifndef SKBoardDifficulty_DEF
#define SKBoardDifficulty_DEF

enum {
    SKBoardDifficultyEasy,
    SKBoardDifficultyMedium,
    SKBoardDifficultyHard
};
typedef NSInteger SKBoardDifficulty;

#endif

@interface SKBoard (Helper)

- (NSInteger) completed;

- (NSString *) bestTimeString;

+ (void) insertBoard:(NSInteger) boardId withName:(NSString *) name withDifficulty:(SKBoardDifficulty) difficulty withRating:(float) rating withLayout:(SInt8 *) layout;

@end
